package com.findviewbydream.evil.helloyouth.Fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import com.findviewbydream.evil.helloyouth.R;

/********************************************
 * 工程名：HelloYouth
 * 包名：com.findviewbydream.evil.helloyouth.Fragment
 * 时间：16-6-8 下午1:04
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：
 ********************************************/
public class Fragment1 extends Fragment
{
    private View view;
    private static Fragment1 fragment1;
    private TextView textView;
    private Button button;

    public static Fragment1 newInstance()
    {
        if (fragment1 == null)
            fragment1 = new Fragment1();
        return fragment1;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState)
    {
        view = inflater.inflate(R.layout.left_fragment, container, false);
        initView(view);
        //textView.setText("Fragment1");
        return view;
    }

    private void initView(View view)
    {
        textView = (TextView) view.findViewById(R.id.textView);
        button = (Button) view.findViewById(R.id.button);
    }
}
